package homework.day318.demo1;

public class Truck extends Vehicle{
    private String shipment;

    public String getShipment() {
        return shipment;
    }

    public void setShipment(String shipment) {
        this.shipment = shipment;
    }
    public Truck(){
        super();
    }

    @Override
    public void travel() {
        System.out.println("装了一卡车的" + this.shipment + "正在行驶");
    }
}
